<%--
  Created by IntelliJ IDEA.
  User: win
  Date: 2020/10/17
  Time: 18:48
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>修改学生信息</title>
</head>
<body style="padding: 100px;">
<div>
    <%
        String error = (String) request.getAttribute("error");
        String result = (String) request.getAttribute("result");
        String message = "";
        if (error!=null&&error.equalsIgnoreCase("nostudent")){
            message="无此学生，修改失败！";
        }else {
            if (result!=null&&result.equalsIgnoreCase("seccess")){
                message="修改成功！";
            }else if(result!=null&&result.equalsIgnoreCase("fail")){
                message="修改失败！";
            }
        }
    %>
    <h1><%= message %></h1>
    <a href="menu.jsp">
        <button>返回</button>
    </a>
    <form action="updatestudent" method="post">
        请输入要修改的学生的学号:<br>
        <input type="text" name="studentID"><br>
        <hr>
        请输入要修改的学生姓名：<br>
        <input type="text" name="stuname"><br>
        请输入要修改的学生性别(<span style="color: red">仅限男或女</span>)：<br>
        <input type="text" name="sex"><br>
        请输入要修改的学生生日：<br>
        <input type="date" name="birthday"><br>
        请输入要修改的学生邮箱：<br>
        <input type="text" name="email"><br>
        请输入要修改的学生备注：<br>
        <input type="text" name="remark"><br>
        请输入要修改的学生所属班级：<br>
        <input type="text" name="stuclass"><br>
        <input type="submit" value="修改">
    </form>
</div>

</body>
</html>
